import requests

from com.yh.oa.utils.utils import oahost


class User():

    @staticmethod
    def login(username,password):
        user = {
            "username": username,
            "password": password
        }
        loginResp = requests.post(oahost+"/login/noCode",json=user)
        return loginResp